<template>
    <div class="aa">
        <!-- <el-radio-button label="default">default</el-radio-button> -->
        <div class="demo-date-picker">
            <!-- <span class="demonstration">Default</span> -->
            <el-date-picker style="width: 220px;" v-model="value1" type="daterange" range-separator="-"
                start-placeholder="开始日期" end-placeholder="结束日期" @change="getTime" />
        </div>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const value1 = ref('')
const value2 = ref('')

let emits = defineEmits(['getTimeV'])
const getTime = () => {
    // console.log(value1.value,88888);
    emits('getTimeV', value1.value);  // 传递的值是 input输入框的值
}
</script>

<style scoped lang="scss">
.aa {
    margin-left: 10px;

    .el-date-picker {}
}
</style>